#pragma once



struct ttds_rect
{
    int x = 0;
    int y = 0;
    int width = 0;
    int height = 0;
    ttds_rect() {}
    ttds_rect(int x1, int y1, int w, int h) : x(x1), y(y1), width(w), height(h) {}
};

int ttds_rect_intersection(const ttds_rect *a, const ttds_rect *b, ttds_rect *r);
int ttds_rect_cut(const ttds_rect *a, const ttds_rect *b, ttds_rect ra[4], ttds_rect rb[4]);

